﻿@model IDictionary<string, object>
@{
    ViewBag.Title = "主页";
}
<link rel="stylesheet" type="text/css" href="/Content/book.index.css" media="all">
<div class="w main">
    <div class="right-extra">
        <div class="middle">
            <div id="slide" clstag="book|keycount|index|slide" style="position: relative;">
            </div>
            <!--slide-->
            <script type="text/javascript">
                $("#slide").jdSlide({
                    width: 544,
                    height: 164,
                    pics:
[{ src: "/images/rBEHZlBWxogIAAAAAACzBeLS6PoAABXtgImb_4AALMd819.jpg",
    href: "#",
    alt: "",
    breviary: "#",
    type: "img"
}, { src: "/images/rBEHalBSoAQIAAAAAACmRbU9nBcAABLjQJML9YAAKZd411.jpg",
    href: "#",
    alt: "",
    breviary: "#",
    type: "img"
},
{ src: "/images/rBEHaVBRZIgIAAAAAAPvbUwvhWwAABKawDAq7EAA--F582.jpg",
    href: "#",
    alt: "",
    breviary: "#",
    type: "img"
}]
                })
            </script>
        </div>
        <!--middle end-->
        <div class="right">
            <div class="m m0" id="report" clstag="book|keycount|index|report">
                <div class="mt">
                    <h2>
                        图书资讯<br>
                        <span>Book News</span></h2>
                    <div class="extra">
                    </div>
                </div>
                <div class="mc">
                    <ul>
                        <li>·<a target="_blank" href="#">图书音像全场满减+返券</a></li><li>·<a target="_blank" href="#">原版4折封顶集中营！</a></li><li>
                            ·<a target="_blank" href="#">减便宜！15元封顶！</a></li><li>·<a target="_blank" href="#">2012考试直通车9月号</a></li><li>
                                ·<a target="_blank" href="#">图书半价专区上线啦！</a></li><li>·<a target="_blank" href="#">今日图书音像团购精品！</a></li>
                    </ul>
                </div>
            </div>
            <!--report end-->
        </div>
        <!--right end-->
        <span class="clr"></span>
        <div class="middle">
            <div class="m m1" id="newbooks">
                <div class="mt">
                    <h2>
                        新书速递<br>
                        <span>New Title Express</span></h2>
                </div>
                <div class="mc tabcon">
                    <ul class="list-h" clstag="book|keycount|index|listh">
                        @{
                            int productNewi = 0;
                            foreach (var item in (List<Pku.BookStore.Model.ProductModel>)Model["productListNew"])
                            {
                            <li onclick="fe(&#39;bh1&#39;,11064637,@productNewi)">
                                <div class="p-img bookimg">
                                    <div class="i-img">
                                        <a href="/Product/Detail/@item.BookID" target="_blank" title="@item.BookName">
                                            <img src="@item.Image" width="130" height="130" alt="@item.BookName"></a></div>
                                </div>
                                <div class="p-name">
                                    <a href="/Product/Detail/@item.BookID" target="_blank">@item.BookName.Substring(0, item.BookName.Length > 10 ? 10 : item.BookName.Length)</a></div>
                                <div class="p-market">
                                    定价：<del>￥@item.Price</del></div>
                                <div class="p-price">
                                    图书价：<strong>￥@item.TruePrice</strong></div>
                            </li>
                                productNewi++;
                            }
                        }
                    </ul>
                </div>
            </div>
            <!--newbooks-->
            <script type="text/javascript">                $("#newbooks").jdTab();</script>
            <div class="m m1" id="recommend-editor">
                <div class="mt">
                    <h2>
                        特价图书<br>
                        <span>Special Price</span></h2>
                </div>
                <div class="mc" clstag="book|keycount|index|listh1">
                    <ul class="list-h">
                        @{
                            int productSpeciali = 0;
                            foreach (var item in (List<Pku.BookStore.Model.ProductModel>)Model["productListSpecial"])
                            {
                            <li onclick="fe(&#39;bh1&#39;,11064637,@productSpeciali)">
                                <div class="p-img bookimg">
                                    <div class="i-img">
                                        <a href="/Product/Detail/@item.BookID" target="_blank" title="@item.BookName">
                                            <img src="@item.Image" width="130" height="130" alt="@item.BookName"></a></div>
                                </div>
                                <div class="p-name">
                                    <a href="/Product/Detail/@item.BookID" target="_blank">@item.BookName.Substring(0, item.BookName.Length > 20 ? 20 : item.BookName.Length)</a></div>
                                <div class="p-market">
                                    定价：<del>￥@item.Price</del></div>
                                <div class="p-price">
                                    图书价：<strong>￥@item.TruePrice</strong></div>
                            </li>
                                productSpeciali++;

                            }
                        }
                    </ul>
                </div>
            </div>
            <!--recommend-editor end-->
        </div>
        <!--middle end-->
        <div class="right">
            <div class="m m0" id="daily-sell">
                <div class="mt">
                    <h2>
                        图书畅销榜<br>
                        <span>Book Bestsellers</span></h2>
                </div>
                <div class="mc">
                    <ul class="rank" clstag="book|keycount|index|rank">
                        @{
                            int productHoti = 1;
                            foreach (var item in (List<Pku.BookStore.Model.ProductModel>)Model["productHot"])
                            {
                            <li onclick="fe(&#39;btop&#39;,&#39;10014268&#39;,@productHoti)"><span>@productHoti</span><div
                                class="p-img">
                                <a href="/Product/Detail/@item.BookID" target="_blank" title="@item.BookName">
                                    <img src="@item.Image" width="50" height="50"
                                        alt="@item.BookName"></a></div>
                                <div class="p-name">
                                    <a href="/Product/Detail/@item.BookID" target="_blank">@item.BookName</a></div>
                                <div class="p-market">
                                    定价：<del>￥@item.Price</del></div>
                                <div class="p-price">
                                    图书价：<strong>￥@item.TruePrice</strong></div>
                            </li>
                                productHoti++;
                            }
                        }
                    </ul>
                </div>
            </div>
            <!--daily-sell end-->
        </div>
        <!--right end-->
        <span class="clr"></span>
    </div>
    <!--right-extra end-->
    <div class="left">
        <div class="m" id="booksort" clstag="book|keycount|index|booksort">
            <div class="mt">
                <h2>
                    图书分类</h2>
            </div>
            <div class="mc">
                @{
                    foreach (var item in (List<Pku.BookStore.Web.Models.CategoryModels>)Model["CateList"])
                    {
                    <div class="item">
                        <h3>
                            <b>&gt;</b><a href="/Category/List/@item.CategoryID">·@item.CategoryName</a></h3>
                        <ul>
                            @foreach (var pitem in item.pList)
                            {
                                <li><a href="/Category/List/@item.CategoryID@Html.Raw("_")@pitem.CategoryID" title="@pitem.CategoryName">@pitem.CategoryName</a></li>
                            }
                        </ul>
                    </div>
                    }
                }
            </div>
        </div>
        <!--booksort end -->
        <script type="text/javascript">            $("#booksort .item").hoverForIE6({ delay: 150 });</script>
        <div class="m m0" id="publishers" clstag="book|keycount|index|publishers">
            <div class="mt">
                <h2>
                    品牌出版商<br>
                    <span>Top Publishers</span></h2>
                <div class="extra">
                </div>
            </div>
            <div class="mc">
                <ul>
                    @foreach (var item in (List<Pku.BookStore.Model.PublisherModel>)Model["publisherList"])
                    {
                        <li class=""><b></b><a href="/Publisher/List/@item.PublisherID" target="_blank" title="@item.PublisherName">@item.PublisherName</a></li>
                    }
                </ul>
            </div>
        </div>
        <!--publishers end-->
        <div class="mc">
        </div>
    </div>
    <!--left end-->
    <span class="clr"></span>
</div>
